package cn.ffcs.uec.outStaffDataModificationApply.action;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Components;

import cn.ffcs.raptornuke.plugin.common.zk.ctrl.BasePortletComposer;
import cn.ffcs.raptornuke.portal.theme.ThemeDisplay;
import cn.ffcs.uec.outStaff.constant.UecOutStaffConstants;
import cn.ffcs.uec.outStaffDataModificationApply.action.bean.UecOutStaffPartyLogModificationApplyMainBean;

/**
 * 外包人员政治面貌管理
 * 
 * @author liuxiaodong
 *
 */
@Controller
@Scope("prototype")
public class UecOutStaffPartyLogModificationApplyMainComposer extends
		BasePortletComposer {

	private static final long serialVersionUID = -2052882480364954385L;

	private UecOutStaffPartyLogModificationApplyMainBean bean = new UecOutStaffPartyLogModificationApplyMainBean();

	@Override
	public String getPortletId() {
		return super.getPortletId();
	}

	@Override
	public ThemeDisplay getThemeDisplay() {
		return super.getThemeDisplay();
	}

	@Override
	public void doAfterCompose(Component comp) throws Exception {
		super.doAfterCompose(comp);
		Components.wireVariables(comp, bean);

		bean.getUecOutStaffInfoListboxExt().addForward(
				UecOutStaffConstants.ON_UEC_OUT_STAFF_INFO_QUERY,
				bean.getUecOutStaffPartyLogListboxExt(),
				UecOutStaffConstants.ON_UEC_OUT_STAFF_PARTYLOG_QUERY_RESPONSE);
		
		this.bean.getUecOutStaffInfoListboxExt().addForward(
				UecOutStaffConstants.ON_CLEAN_TAB_UEC_OUT_STAFF_INFO_QUERY,
				this.bean.getUecOutStaffPartyLogListboxExt(),
				UecOutStaffConstants.ON_CLEAN_UEC_OUT_STAFF_PARTYLOG_RESPONSE);
	}
}
